# _*_ coding:utf-8 _*_
__author__ = 'jiangchao'
__date__ = '2017/4/24 0024 上午 9:06'
from django.forms import ModelForm
from .models import Comment, MessageBoard


class CommentForm(ModelForm):
    class Meta:
        model = Comment
        fields = ['nick_name', 'email', 'content']


class MessageBoardForm(ModelForm):
    class Meta:
        model =MessageBoard
        fields = ['name', 'email', 'address', 'message']
